package com.syh.jn.scm.service.impl.supplier.statistics;

import com.alibaba.dubbo.config.annotation.Service;
import com.syh.jn.scm.dto.supplier.statistics.salesMan.SalesManOperateReportVo;
import com.syh.jn.scm.infrastructure.repository.utils.MybatisTemplate;
import com.syh.jn.scm.service.api.supplier.statistics.SalesManOperateReportService;

import java.util.List;
import java.util.Map;

@Service
public class SalesManOperateReportServiceImpl implements SalesManOperateReportService {
  /**
   * 统计销售代表经营数据
   */
  @Override
  public List<SalesManOperateReportVo> salesmanOperateReport(Map<String, Object> params) {
    return MybatisTemplate.selectList("salesManOperateReportRepository.salesManOperateReoprt", params);
  }

  /**
   * 统计销售代表经营总条数
   */
  @Override
  public Integer salesmanOperateReportCount(Map<String, Object> params) {
    return MybatisTemplate.selectOne("salesManOperateReportRepository.salesmanOperateReportCount",params);
  }
}
